package com.bright.service;

import com.bright.pojo.Blog;
import com.bright.pojo.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TypeService {
    Type saveType(Type type);

    Type getType(long id);

    Page<Type> listType(Pageable pageable);

    List<Type> listTypeTop(Integer size);

    List<Blog> listTypeBlog(long id);

    Type updataType(long id,Type type);

    void deleteType(long id);

    Type getByName(String name);
}
